// with polyfills
import "core-js/stable";
import "regenerator-runtime/runtime";

import Vue from "vue";
import router from "./router";
import store from "./store/";
import { VueAxios } from "./utils/request";
import Antd from "ant-design-vue";
// import ProLayout, { PageHeaderWrapper } from "@ant-design-vue/pro-layout";
// import themePluginConfig from "../config/themePluginConfig";
import "./core/lazy_use"; // use lazy load components
import "./global.less"; // global style
import 'ant-design-vue/dist/antd.css';
import "@/styles/index.scss";
import App from "./App.vue";

Vue.config.productionTip = false;

// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios);
// use pro-layout components
// Vue.component("pro-layout", ProLayout);
// Vue.component("page-container", PageHeaderWrapper);
// Vue.component("page-header-wrapper", PageHeaderWrapper);
Vue.use(Antd);

// window.umi_plugin_ant_themeVar = themePluginConfig.theme;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
